Note: This statement is not available in the Add Statement dialog box or the Statements pane.
Appends a value to the end of a JSONArray.
Syntax
Push(Value)
Arguments
| Argument | Description |
|---|---|
| Value | Value to set. Must be a string, integer, float, Boolean, null, JSONObject, or JSONArray. If a JSONObject or JSONArray is used, a copy is created and inserted into the JSONArray. |
Supported objects
Example
jsonArray = JSONNewArray()
' Appends 1 and 2 to end of array
jsonArray.Push(1)
jsonArray.Push(2)